package com.xdb.sqlparser.dialect.oracle.ast.statement;

import com.xdb.sqlparser.ast.SQLExpr;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;

public class OracleExitStatement extends OracleStatementImpl {

	private SQLExpr when;

	public SQLExpr getWhen() {
		return when;
	}

	public void setWhen(SQLExpr when) {
		this.when = when;
	}

	@Override
	public void accept0(OracleASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, when);
		}
		visitor.endVisit(this);
	}

}
